from odoo import api, fields, models


# 引入odoo内置的板块

class Commodity_type(models.Model):
    _name = 'commodity.type'
    # 相当于给了此模型一个唯一id，之后很多地方需要用到
    _description = '商品类型'
    category_number = fields.Char(
        string='类别编号',
        required=True
    )
    category_name = fields.Char(
        string='类别名称',
        required=True
    )
    description = fields.Char(
        string='说明',
        required=True
    )
